package com.salt.patterns.abstractfactory;

/**
 * 模板工厂测试
 *
 * @author KuangHaiBo
 * @date 2021/4/11 16:18
 */
public class Test {
    public static void main(String[] args) {
        CrateFactory crateFactory = new CrateFactory();
        // 使用微信工厂
        AbstractNoticeFactory wechat = crateFactory.create("wechat");
        WeChatNoticeSender unite = wechat.getWeChatSender("unite");
        unite.send();
    }
}
